import subprocess

return_code = subprocess.call(["cd", "testDir"] ,stdout=subprocess.PIPE, stderr=subprocess.PIPE)
print("Command returned:", return_code)


